From 450beef2a2fe9c753995e677c49dac3de29c2488 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Mon, 13 Sep 2010 22:10:47 +0200 Subject: [PATCH] demos: Do not use deprecated gtk_widget_get_child_requisition() Use gtk_size_request_get_size() instead --- demos/gtk-demo/offscreen_window.c | 3 ++- demos/gtk-demo/offscreen_window2.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c index e4b454d3c5..622250efd6 100644 --- a/demos/gtk-demo/offscreen_window.c +++ b/demos/gtk-demo/offscreen_window.c @@ -434,7 +434,8 @@ gtk_rotated_bin_size_allocate (GtkWidget *widget, s = sin (bin->angle); c = cos (bin->angle); - gtk_widget_get_child_requisition (bin->child, &child_requisition); + gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child), + &child_requisition, NULL); child_allocation.x = 0; child_allocation.y = 0; child_allocation.height = child_requisition.height; diff --git a/demos/gtk-demo/offscreen_window2.c b/demos/gtk-demo/offscreen_window2.c index 642fc46157..6e7cceeb4c 100644 --- a/demos/gtk-demo/offscreen_window2.c +++ b/demos/gtk-demo/offscreen_window2.c @@ -349,7 +349,8 @@ gtk_mirror_bin_size_allocate (GtkWidget *widget, GtkRequisition child_requisition; GtkAllocation child_allocation; - gtk_widget_get_child_requisition (bin->child, &child_requisition); + gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child), + &child_requisition, NULL); child_allocation.x = 0; child_allocation.y = 0; child_allocation.height = child_requisition.height; -- 2.30.2